<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%--
    跳转到 当前页面中 request域中 必须有一个 名字叫 user的对象
  --%>
  <spring:form action="reg" method="post" modelAttribute="user">
      <spring:label path="username">用户名</spring:label>
      <spring:input path="username"></spring:input> <spring:errors path="username"></spring:errors> <br>

      <spring:label path="password">密码</spring:label>
      <spring:password path="password"></spring:password> <spring:errors path="password"></spring:errors> <br>

      <spring:label path="age">年龄</spring:label>
      <spring:input path="age"></spring:input> <spring:errors path="age"></spring:errors> <br>

      <spring:label path="sex">性别</spring:label>
      <spring:input path="sex"></spring:input> <spring:errors path="sex"></spring:errors> <br>

      <spring:label path="birthday">生日</spring:label>
      <spring:input path="birthday"></spring:input> <spring:errors path="birthday"></spring:errors> <br>

      <spring:label path="salary">薪水</spring:label>
      <spring:input path="salary"></spring:input> <spring:errors path="salary"></spring:errors> <br>

      <spring:label path="winRate">工作进度</spring:label>
      <spring:input path="winRate"></spring:input> <spring:errors path="winRate"></spring:errors> <br>

      <input type="submit" value="注册">
  </spring:form>
</body>
</html>
